﻿

using System.Security.Claims;

ClaimsIdentity person = new();//你是谁

person.AddClaim(new Claim(ClaimTypes.Name, "张三"));
person.AddClaim(new Claim("手机", "1586666666"));


ClaimsIdentity wechat= new();
wechat.AddClaim(new("微信名", "小蛋蛋"));


ClaimsPrincipal user=new();

user.AddIdentities(new[] { person, wechat });


